-
Notifications
You must be signed in to change notification settings - Fork 5.7k
[SOT][Faster Guard] Implement more make_faster_guard
#72272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
a2de515
to
68f6833
Compare
8860f0d
to
d13fa5f
Compare
paddle/fluid/pybind/sot/guards.cc
Outdated
if (value == NULL) { | ||
PyErr_Clear(); | ||
return false; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是不是可以写一个宏来处理?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉可以
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
下个 PR,这个 PR 先合吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
…` misses `cache_index`
1979a52
to
8c8dcff
Compare
make_faster_guard
make_faster_guard
make_faster_guard
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PR Category
Execute Infrastructure
PR Types
Performance
Description
当 STRICT_GUARD 没开启且GUARD_TREE开启时,如果guard tree没有命中,也就是cache_index为None之前会再找一次,fasterguard(pyguard),本PR把这个逻辑去掉了,guard tree没有命中则直接视为guard miss,不会再去其他guard模式找。
另外实现了下述make_faster_guard:
目前还差2个:
NumpyVariable,这个的 make_stringified_guard 也没有实现